package com.yxym.exception_;

public class Exception02 {
    public static void main(String[] args)throws Exception {//默认会有一个抛出异常

        String name = null;//NullPointerException空指针异常
        System.out.println(name.length());
    }
}
